{extend name="base" /}
{block name="main"}
<div class="tpl-content-wrapper">
    <div class="tpl-content-page-title">
        编辑角色
    </div>
    <ol class="am-breadcrumb">
        <li><a href="#" class="am-icon-home">首页</a></li>
        <li class="am-active">权限管理</li>
        <li class="am-active">编辑角色</li>
    </ol>
    <div class="tpl-portlet-components">
        <div class="portlet-title">
            <div class="caption font-green bold">
                <span class="am-icon-code"></span> 表单
            </div>



        </div>
        <div class="tpl-block ">

            <div class="am-g tpl-amazeui-form">


                <div class="am-u-sm-12 am-u-md-9">
                    <form  action="/admin/Role/doedit" method="post" class="am-form am-form-horizontal">
                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label"> name </label>
                            <div class="am-u-sm-9">
                                <input type="text" name="name" id="user-name" maxlength="20" value="{$data.name}" >
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="user-email" class="am-u-sm-3 am-form-label"> remark </label>
                            <div class="am-u-sm-9">
                                <input type="text" name="remark" id="user-email" maxlength="32" value="{$data.remark}">
                            </div>
                        </div>

                        <input type="hidden" name="id" value="{$data.id}">

                        <div class="am-form-group">
                            <label for="user-phone" class="am-u-sm-3 am-form-label"> 状态 </label>
                            <div class="am-u-sm-9">
                                <label><input type="radio" name="status" id="user-phone" value="0" {if $data.status==0}checked{/if}><span class="am-input-sm" style="cursor: pointer">禁用</span></label>
                                <label><input type="radio" name="status" id="user-phone" value="1" {if $data.status==1}checked{/if}><span class="am-input-sm" style="cursor: pointer">激活</span></label>
                            </div>
                        </div>




                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <button type="submit" class="am-btn am-btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}